README: Replication Files for Gender Gaps in Access to Medical Intern Positions: The Role of Competition

******0- Overview*******
This repository contains all necessary files to replicate the results presented in the paper "Gender Gaps in Access to Medical Intern Positions: The Role of Competition" by Marina Díez-Rituerto, Javier Gardeazabal, Nagore Iriberri and Pedro Rey-Biel.  

The following instructions will guide users through the process of replicating the results.


******1- Data files*******

	**1.a- Main dataset**
- The data that support the findings of this study were used under license from Ministerio de Sanidad, Consumo y Bienestar Social. These data are available from the authors with the permission of Ministerio de Sanidad, Consumo y Bienestar Social. You may get in contact with the Ministry here: https://sede.mscbs.gob.es/datosabiertos/solicitud.htm  


	**1.b- Graduates data**
- Data on the number of yearly graduates in Medicine by gender was obtained from the Ministerio de Ciencia Innovación y Universidades. You may access the data here:
- https://estadisticas.universidades.gob.es/jaxiPx/Tabla.htm?path=/Universitaria/Alumnado/EEU_2024/Serie/GradoCiclo//l0/&file=HIS_Egr_GradCiclo_Campo_Tot.px&type=pcaxis&L=0
-  Graduates_data.dta :  Contains cleaned and processed data used for Figure A3. 


	**1.c- Entry grades in Medicine**
- Data on the yearly minimum entry grade to university degrees for Medicine and other degrees for the 2001-2022 was obtained from Ministerio de Ciencia Innovación y Universidades. You may access the data here https://www.universidades.gob.es/estadistica-de-universidades-centros-y-titulaciones-euct/ , downloading the following files:
 	- Preinscripción por titulación desde el curso 2015-16 (xls): 							https://www.universidades.gob.es/wp-							content/uploads/2024/07/Indicadores_de_preinscripcion_por_titulacion_Excel_Web_DESDE_2015.xlsx  
	- Serie de indicadores de admisión hasta el curso 2014-2015 (xls): 						https://www.universidades.gob.es/wp-content/uploads/2023/11/Series-Indicadores-					Admision_Hasta_2014_Metodologia.xlsx 
- Entry_grades.dta :  Contains cleaned and processed data used for Figure A1. 


******2- OUTPUT FILES: TABLES*******

	** Table 1.do: script for generating Table 1:Gender Gap by Periods that Differ in Level of Competitiveness
	** Table 2.do: script for generating Table 2:Gender Gaps and the Inverse of Competitiveness with Year Fixed Effects
	** Table 3.do: script for generating Table 3:Gender Gaps :Heterogeneity by GPA Score
	** Table 4.do: script for generating Table 4:Gender Gaps and the Inverse of Competitiveness: Additional Factors
	** Table A1.do: script for generating Table A1:Descriptive Statistics
	** Table A2.do: script for generating Table A2:Descriptive Statistics by Year and Gender: Performance Variables
	** Table A3.do: script for generating Table A3:Gender Gaps and Changes in the MIR Test Format
	** Table A4.do: script for generating Table A4: Gender Gap by Periods of different levels of Competitiveness, without GPA Control
	** Table A5.do: script for generating Table A5:Gender Gaps and the Inverse of Competitiveness, without GPA Control


******3- OUTPUT FILES: FIGURES*******

	** Figure 1.do: script for generating Figure 1: Number of applicants, number of test takers and the number of intern positions from 1983 to 2019
	** Figure 2.do: script for generating Figure 2: Unconditional probability (ratio between the no. of positions and the no. of applicants) of getting an intern position and average raw total score by gender from 1983 to 2019
	** Figure 3.do: script for generating Figure 3:  Evolution over time of the inverse of competitiveness and of the gender gap in total score: average raw total score and controlling for GPA .
	** Figure 4.do: script for generating Figure 4: Gender gaps by year in total score
	** Figure 5.do: script for generating Figure 5: Gender gaps in observed total score, in only GPA Points, and evaluated at the minimum and maximum competition scenarios (1983–2019)
	** Figure A1.do: script for generating Figure A1: Yearly minimum entry grade to university degrees for Medicine and other degrees for the 2001-2022 period
	** Figure A3.do: script for generating Figure A3:  Yearly number of graduates in Medicine by gender and graduates from private universities 
	** Figure A4.do: script for generating Figure A4: Gender gaps in the outcome variables
	** Figure A5.do: script for generating Figure A5: Gender gaps by year
	** Figure A6.do: script for generating Figure A6: Yearly evolution of marginal effects evaluated at the yearly competitiveness level, and three yearly values of GPA
	** Figure A7.do: script for generating Figure A7: Evolution over time of the inverse of competitiveness and the mean proportion of correct answer
	** Figure A8.do: script for generating Figure A8: GPA probability density functions

******4- SOFTWARE AND DEPENDENCIES *******
To run the code, you will need the following:
	**Programming Languages: Stata











